package com.yckj.lawyermanager.dongao.controller;

import com.yckj.lawyermanager.dongao.entity.Lawyer;
import com.yckj.lawyermanager.dongao.service.LawyerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 律师控制器
 */
@Controller
public class LawyerController {

    @Autowired
    LawyerService lawyerService;

    @RequestMapping("/addLawyer")
    public String addLawyer(Lawyer lawyer){
        lawyerService.addLawyer(lawyer);
        //success 使一个网页success.html
        return "../static/success";
    }
}
